const express = require('express');
const router = express.Router();
const applicationController = require('../controllers/application.controller');

// 获取所有投递
router.get('/', applicationController.getAllApplications);

// 获取单个投递
router.get('/:id', applicationController.getApplicationById);

// 创建投递
router.post('/', applicationController.createApplication);

// 更新投递状态
router.put('/:id', applicationController.updateApplication);

// 删除投递
router.delete('/:id', applicationController.deleteApplication);

module.exports = router;